<template>
  <!-- 开启顶部安全区适配 -->
<!--  <van-nav-bar safe-area-inset-top/>-->
  <van-config-provider :theme="theme.darkValue">
    <RouterView/>
  </van-config-provider>
  <!-- 开启底部安全区适配 -->
<!--  <van-number-keyboard safe-area-inset-bottom/>-->
</template>
<script setup>
import {onMounted} from 'vue'
import {RouterView} from 'vue-router';
import {useThemeStore, useUserStore} from '@/store';

const theme = useThemeStore();
const user = useUserStore();
onMounted(() => {
  theme.applyTheme()
  user.initialize()
})
</script>
<style scoped lang="less">
</style>
